package com.latam.arq.example.persistence.services;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.latam.arq.commons.persistence.ibatis.IBatisPersistenceServices;
import com.latam.arq.example.domain.AdmisionBean;
import com.latam.arq.example.domain.CabeceraBean;
import com.latam.arq.example.domain.DetalleBean;
import com.latam.arq.example.domain.PacienteBean;
import com.latam.arq.example.domain.PamBean;
import com.latam.arq.example.persistence.exceptions.ExampleBeanServiceException;

/**

 */
public class DetalleBeanServices extends IBatisPersistenceServices<DetalleBeanMapper> implements DetalleBeanMapper {
	
	
	private static final Logger logger = LoggerFactory.getLogger(DetalleBeanServices.class);

	@Override
	public DetalleBean get(Integer id) throws ExampleBeanServiceException {
		
		 	return mapper.get(id);
	}

	@Override
	public void insert(DetalleBean detalle) throws ExampleBeanServiceException {
		 mapper.insert(detalle);
		
	}

	@Override
	public List<DetalleBean> list() throws ExampleBeanServiceException {
		
		return mapper.list();
	}

	@Override
	public void delete(DetalleBean detalle) throws ExampleBeanServiceException {
		mapper.delete(detalle);
		
	}

	@Override
	public void update(DetalleBean detalle) throws ExampleBeanServiceException {
		mapper.update(detalle);
	}

	@Override
	public List<DetalleBean> getByRol(String rol) throws ExampleBeanServiceException {
		return mapper.getByRol(rol);
	}

	@Override
	public List<DetalleBean> getByNumPam(Integer numPam) throws ExampleBeanServiceException{
	return mapper.getByNumPam(numPam);
	}



	
}
